<html xmlns:concordion="http://www.concordion.org/2007/concordion">
    <link href="../../concordion.css" rel="stylesheet" type="text/css" />
    <body>

        <h1>Board tests</h1>

        <div class="example">

            <h3>Get the Expected Holes</h3>

            The 5 tiles : 
            <table concordion:execute="createTile(#north, #east, #south, #west, #x, #y, #rot)">
                <tr>
                    <th>Tile</th>
                    <th concordion:set="#north">north</th>
                    <th concordion:set="#east">east</th>
                    <th concordion:set="#south">south</th>
                    <th concordion:set="#west">west</th>
                    <th concordion:set="#x">x</th>
                    <th concordion:set="#y">y</th>
                    <th concordion:set="#rot">rotation</th>
                </tr>

                <tr>
                    <td>Tile1</td>
                    <td>CITY</td>
                    <td>CITY</td>
                    <td>CITY</td>
                    <td>MEADOW</td>
                    <td>0</td>
                    <td>0</td>
                    <td>0</td>
                </tr>
                <tr>
                    <td>Tile2</td>
                    <td>ROAD</td>
                    <td>MEADOW</td>
                    <td>ROAD</td>
                    <td>CITY</td>
                    <td>1</td>
                    <td>0</td>
                    <td>0</td>
                </tr>

                <tr>
                    <td>Tile3</td>
                    <td>MEADOW</td>
                    <td>MEADOW</td>
                    <td>CITY</td>
                    <td>ROAD</td>
                    <td>0</td>
                    <td>1</td>
                    <td>180</td>
                </tr>

                <tr>
                    <td>Tile4</td>
                    <td>MEADOW</td>
                    <td>CITY</td>
                    <td>ROAD</td>
                    <td>ROAD</td>
                    <td>1</td>
                    <td>1</td>
                    <td>90</td>
                </tr>

                <tr>
                    <td>Tile5</td>
                    <td>MEADOW</td>
                    <td>CITY</td>
                    <td>MEADOW</td>
                    <td>MEADOW</td>
                    <td>1</td>
                    <td>2</td>
                    <td>270</td>
                </tr>
            </table>

            We must have : <b concordion:assertEquals="holesNumber()">9</b> holes.

            <table concordion:execute="#result = searchHole(#hole)">
                <tr>
                    <th concordion:set="#hole">Expected Holes</th>
                    <th concordion:assertTrue="#result">Result</th>
                </tr>
                <tr><td>(-1,0)</td><td></td></tr>
                <tr><td>(0,-1)</td><td></td></tr>
                <tr><td>(2,0)</td><td></td></tr>
                <tr><td>(1,-1)</td><td></td></tr>
                <tr><td>(-1,1)</td><td></td></tr>
                <tr><td>(0,2)</td><td></td></tr>
                <tr><td>(2,1)</td><td></td></tr>
                <tr><td>(2,2)</td><td></td></tr>
                <tr><td>(1,3)</td><td></td></tr>
            </table>
        </div>

    </body>
</html>